package base.day24;

import java.io.*;

public class MyCharacterStream9 {
    public static void main(String[] args) throws IOException {
        //method1();

        InputStreamReader isr=new InputStreamReader(new FileInputStream("C:\\Users\\SuperJohn\\Desktop\\abc.txt"));
        int b;
        while ((b=isr.read())!=-1){
            System.out.println((char) b);
        }
    }

    private static void method1() throws IOException {
        BufferedReader bw=new BufferedReader(new FileReader("C:\\Users\\SuperJohn\\Desktop\\abc.txt"));
        int s;
        while ((s=bw.read())!=-1){
            System.out.println((char) s);
        }
    }


}
